package com.sjs.boot.dynamic.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface RequestDispatcherService {
    /**
     * 获取资源名称
     *
     * @param req
     * @param resp
     * @return
     */
    String getMethod(HttpServletRequest req, HttpServletResponse resp);

    /**
     * 处理请求
     *
     * @param req
     * @param resp
     * @return
     */
    boolean process(HttpServletRequest req, HttpServletResponse resp);
}
